package com.longma.server.pojo.dto;
import com.longma.server.constant.enums.AlarmLevelEnum;
import com.longma.server.constant.enums.GeneralStateEnum;
import com.longma.server.constant.enums.NotifyTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;

/**
 * 告警设置新增、编辑通用实体
 */
@Data
public class AlarmSettingDTO {
    @ApiModelProperty(value = "报警阈值")
    @NotNull(message = "最小阈值不能为空")
    private Double min;

    @ApiModelProperty(value = "报警阈值")
    @NotNull(message = "最大阈值不能为空")
    private Double max;

    @ApiModelProperty(value = "关联用户")
    private Integer operatorId;

    @ApiModelProperty(value = "0控制设备，1微信通知，2短信通知，3邮件通知")
    @NotNull(message = "通知类型不能为空")
    private NotifyTypeEnum notifyType;

    @ApiModelProperty(value = "0开启；1关闭")
    @NotNull(message = "通知状态不能为空")
    private GeneralStateEnum notifyState;

    @ApiModelProperty(value = "报警级别,0提示，1次要，2重要，3严重")
    @NotNull(message = "告警级别不能为空")
    private AlarmLevelEnum level;

    @ApiModelProperty(value = "联控设备")
    private String device;

    @ApiModelProperty(value = "联控设备动作")
    private String deviceAct;
}
